home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / HDX_BACK / HDXPCH / MYDEFS.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-09  |  2.5 KB  |  72 lines

  1. /* defs.h */
  2.  
  3.  
  4. #define    RESOURCEFILE    "HDXPCH.RSC"    /* Resource file for main */
  5. #define    WCAPFILE    "WINCAP"    /* name of winnie-cap file */
  6.  
  7. #define    MEGABYTE    2048L            /* 1Mb worth of blocks */
  8. #define MAXSECT        32760            /* max sector */
  9. #define    IBMMAXSECT    1114112            /* maxsect = spt x head x #cyl          */
  10. #define CLUSIZ        1024            /* size of a cluster in bytes */
  11.                                     /*         = 17  x 64   x 1024 = 1114112 */
  12. #define IBMSPT        17                /* sector per track of IBM is 17 */
  13. #define IBMMCYL       1024            /* max cylinder of IBM is 1024 */
  14. #define IBMMHEAD    64                /* max head of IBM hard disk driver */
  15. #define IBMHEAD      8                /* the head of IBM hard disk driver */
  16. #define    MAXPSIZ        ((32*MEGABYTE)-1)    /* 32Mb partition limit */
  17. #define    NAMSIZ        1024            /* max length of a name */
  18. #define DOS12        0x01            /* primary DOS 12 bit FAT */
  19. #define DOS16        0x04            /* primary DOS 16 bit FAT */
  20. #define SPC            2                /* sector per cluster */
  21. #define BPS         512L            /* bytes per sector */
  22. #define BPEN        2                /* bytes per entry */
  23. #define NUMEN       256                /* number of entries */
  24. #define BPDIR       32              /* byte per dirtory */
  25. #define ENPS        (BPS/BPDIR)     /* entries per sector */
  26. #define FAT12       341             /* BPS/1.5 = 341 */
  27. #define FAT16       256             /* BPS/2 = 256 */
  28. #define MB16        0x8000L         /* 16 mega bytes */
  29. #define MB32        0x10000L        /* 32 mega bytes */
  30. #define ROOTSECT    1L                /* the root sector is on sector */
  31. #define SCAN_BS     0                /* the flag for sortpart() use */
  32. #define USER_ED     1                /* the flag for sortpart() use */
  33. #define NO_EXT        -1                /* no extended partition */
  34. #define MAXBUFSECT    254                /* max # of sector for memory check */
  35.  
  36. #define WI_KIND        0        /* window to be opened on screen */
  37.  
  38. #define MAXPHYSDEVS    18        /* max #devs on DMA bus */
  39. #define    MAXLOGDEVS    14        /* max # logical devices */
  40. #define MAXPART        30        /* assume max # of IBM partitions are 30 */
  41. #define    NPARTS        4        /* #partitions in root block */
  42. #define    EXTRALOGD     100        /* define some more logical device for logmap */
  43.  
  44. #define    NULL    0L
  45. #define    LONG    long
  46. #define    WORD    int
  47. #define UWORD    unsigned int
  48. #define    BYTE    char
  49.  
  50. #define    SECTOR    LONG
  51.  
  52. #define    OFF        0
  53. #define ON        1
  54.  
  55. #define    NO        0
  56. #define YES        1
  57. #define NOMAX   2
  58.  
  59. #define    FALSE        0
  60. #define TRUE        1
  61.  
  62. #define    OK        0
  63. #define    ERROR        (-1)
  64. #define BAILOUT        (-2)
  65. #define MDMERR        (-3)    /* medium changed error */
  66.  
  67. #define ARROW_MOUSE    graf_mouse(ARROW, 0x0L)
  68. #define BEE_MOUSE    graf_mouse(HOURGLASS, 0x0L)
  69.  
  70. extern long gemdos();
  71. extern char *mymalloc();
  72.